package com.klz.iblog.service.serviceImpl;

import com.klz.iblog.dao.AdminMapper;
import com.klz.iblog.pojo.Admin;
import com.klz.iblog.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    private AdminMapper adminMapper;

    /**
     * 根据用户id,查询用户信息
     * @param adminId
     * @return
     */
    @Override
    public Admin selectByPrimaryKey(Integer adminId) {
        return adminMapper.selectByPrimaryKey(adminId);
    }
}
